package com.cainiao.mapper;

import com.cainiao.pojo.QrtzSimpleTriggers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface QrtzSimpleTriggersMapper {
    /**
     *  根据主键删除数据库的记录,qrtz_simple_triggers
     *
     * @param triggerName
     * @param triggerGroup
     */
    int deleteByPrimaryKey(@Param("triggerName") String triggerName, @Param("triggerGroup") String triggerGroup);

    /**
     *  新写入数据库记录,qrtz_simple_triggers
     *
     * @param record
     */
    int insert(QrtzSimpleTriggers record);

    /**
     *  动态字段,写入数据库记录,qrtz_simple_triggers
     *
     * @param record
     */
    int insertSelective(QrtzSimpleTriggers record);

    /**
     *  根据指定主键获取一条数据库记录,qrtz_simple_triggers
     *
     * @param triggerName
     * @param triggerGroup
     */
    QrtzSimpleTriggers selectByPrimaryKey(@Param("triggerName") String triggerName, @Param("triggerGroup") String triggerGroup);

    /**
     *  动态字段,根据主键来更新符合条件的数据库记录,qrtz_simple_triggers
     *
     * @param record
     */
    int updateByPrimaryKeySelective(QrtzSimpleTriggers record);

    /**
     *  根据主键来更新符合条件的数据库记录,qrtz_simple_triggers
     *
     * @param record
     */
    int updateByPrimaryKey(QrtzSimpleTriggers record);
}